<template>
    <div class="parkingCost" v-if="isEeterEnd !== 0">
         <div class="title">
              <div class="line"></div>
              停车费用详情
              <div class="line"></div>
         </div>
         <div class="carVal">
              {{carInfo.CarNumber}}
         </div>
        <div class="price">
              <span class="num">￥{{carInfo.WaitFees}}</span>
         </div>
         <div class="carText">
              <div class="lis"><span class="textName">停车场名称</span><span>{{carInfo.ParkName}}</span></div>
              <div class="lis"><span class="textName">应付金额</span><span>{{carInfo.Fees}}</span></div>
              <div class="lis"><span class="textName">进场时间  </span><span>{{carInfo.InDatetime}}</span></div>
              <div class="lis"><span class="textName">停车时长</span><span>{{carInfo.VTime}}</span></div>
              <div class="colorBloack">
                <img src="../../assets/images/bin.png" alt="">
                <a>请于付款后15分钟内离场, 超时将加收停车费！</a>
              </div>
         </div>
    </div>
</template>
<script>
export default {
	data () {
		return {
      carInfo : {},
			isEeterEnd : 0
		}
	},
  methods : {
    show (data) {
      console.log(data);
        this.carInfo = data;
        this.isEeterEnd = 1;
    }
  }
}
</script>
<style lang="scss" scoped>
    .parkingCost{
        width: 92%;
        height: 7rem;
        margin: 0 auto;
        border-radius: 0.1rem;
        box-shadow: 1px 1px 2px 2px rgb(236, 236, 236, 0.3);
        margin-top: 0.2rem;
        background: #fff;
        text-align: left;
        border: solid 1px rgb(236, 236, 236, 0.3);
        padding: 0 0.3rem;
        box-sizing: border-box;
        .title{
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 0.3rem;
            color: #333;
            margin: 0.3rem 0;
            .line{
                width: 0.8rem;
                margin: 0.2rem;
                height: 0.01rem;
                background: #E6E6E6;
            }
        }
        .carVal{
            font-weight: bold;
            text-align: center;
            font-size: 0.4rem;
        }
        .price{
            text-align: center;
            width: 110%;
            height: 1.5rem;
            margin-left: -5%;
            border-bottom: solid 0.01rem rgb(228, 228, 228);
            .num{
                font-weight: bold;
                font-size: 0.4rem;
                position: relative;
                color: #FF5C00;
            }
            .num:after{
                content: '';
                width: 1.2rem;
                position: absolute;
                right: -1.3rem;
                top: -0.05rem;
                height: 0.5rem;
                background: url('../../assets/images/paying.png') 100% 100% no-repeat;
                background-size: 100% 100%;
            }
        }
        .carText{
            font-size: 0.25rem;
            padding-top: 0.3rem;
            box-sizing: border-box;
            .lis{
                width: 100%;
                line-height: 0.6rem;
                height: 0.6rem;
                span:nth-child(1) {
                    float: left;
                }
                span:nth-child(2) {
                    float: right;
                }
            }
            .colorBloack{
                background: #F5F5F5;
                width: 100%;
                color: #999999;
                margin-top: 0.2rem;
                font-size: 0.25rem;
                height: 0.6rem;
                line-height: 0.6rem;
                img{
                    float: left;
                    width: 0.3rem;
                    margin-left: 0.1rem;
                    margin-top: 0.15rem;
                }
                a{
                    font-size: 0.1rem;
                    float: left;
                }
            }
        }
    }
</style>
